<center><h2>登录</h2></center>
<!-- <form action="index.php?controller=Users&action=login" method="post">
username: <input type="text" name="username"/><br/>
Password: <input type="password" name="password"/><br/>
<input type="submit" value="提交"><br/>
<a href="index.php?controller=Users&action=register">注册</a>
</form> -->
<?php if(!isset($status) || $status == false) { ?>
<form action="index.php?controller=Users&action=login" method="post" style="width: 200px;margin: auto;">
    <div class="form-group">
      <!-- <label for="username">username:</label> -->
      <input type="text" class="form-control" id="username" name="username" placeholder="输入用户名">
    </div>
    <div class="form-group">
      <!-- <label for="password">Password:</label> -->
      <input type="password" class="form-control" id="password" name="password" placeholder="输入密码">
    </div>
    <center>
        <button type="submit" class="btn btn-primary" style="margin-right: 20px;">登录</button>
        <a class="btn btn-primary" href="index.php?controller=Users&action=register">注册</a>
    </center>
  </form>
<?php } ?>
<center><p><?php if(isset($status) && $status == false) echo isset($message) ? $message : ''; ?></p>

<a class="btn btn-primary" href="index.php?controller=Task&action=index" <?php if(!isset($status) || $status == false) echo 'hidden' ?>>前往首页</a>
<center>